package com.hera.process.config.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hera.base.util.FiltroDTO;
import com.hera.process.config.dao.ProcessGroupUserDao;
import com.hera.process.config.service.ProcessGroupUserService;
import com.hera.process.workflow.domain.ProcessGroupUser;
import com.hera.process.workflow.domain.ProcessGroupUserPK;
import com.vaadin.annotations.AutoGenerated;


@Service("processgroupuserservice")
public class ProcessGroupUserServiceImpl implements ProcessGroupUserService {

	@Autowired
	private ProcessGroupUserDao processgroupuserdao;
	
	@Override
	public ProcessGroupUser findById(ProcessGroupUserPK id) {
		
		return processgroupuserdao.findOne(id);
	}

	@Override
	public void update(ProcessGroupUser entity) {
		
		processgroupuserdao.save(entity);
	}

	@Override
	public void save(ProcessGroupUser entity) {
		
		processgroupuserdao.save(entity);
	}

	@Override
	public void delete(ProcessGroupUser entity) {
		
		processgroupuserdao.delete(entity);
	}

	@Override
	public List<ProcessGroupUser> findAll() {
		
		return processgroupuserdao.findAll();
	}

	@Override
	public List<ProcessGroupUser> findAll(FiltroDTO filtroDTO) {
		
		return processgroupuserdao.obtenerEntidadesPorFiltros(filtroDTO);
	}

	
}
